import { ref } from 'vue';
//  传递详情页数据
const data = ref(null) as any;

function setDetail(params: any = null) {
    data.value = params;
}

export default function useDetail(): any[] {
    return [ data, setDetail ];
}